extends "../changmen-3/changmen-3.gd"


var baseId = ""
var upText1 = "重樱舰队旗舰额外赋予重樱舰娘15%吸血"
var upText2 = "舰队指挥赋予重樱阵营角色时额外提高35%伤害"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("<唯一>所有友军造成炮击伤害时，附带长门炮击20%的特效伤害", "舰队指挥")
		
func _onBattleStart():
	._onBattleStart()
	var chas = getAllChas(2)
	for i in chas:
		if not i.hasBuff("b_bigSeven") and not i.isSumm:
			castBuff(i, b_bigSeven.new())

#舰队指挥
class b_bigSeven:
	extends "../../../../azurlane_ctrl/AzurBuff.gd"
	var p = 1
	func _init():
		attInit()
		buffName = "舰队指挥"
		dispel = 2
	func _connect():
		masCha.connect("onAtkChara",self,"_onAtkChara")
		if masCha.camp == "重樱" and casCha.upgraded == 2:
			p = 1.35
	func _onAtkChara(atkInfo:AtkInfo):
		if atkInfo.atkType == sys.AtkType.GUN:
			casCha.azurHurtChara(atkInfo.hitCha, casCha.att.atk*0.2, sys.HurtType.WEAPON, sys.AtkType.EFF, "舰队指挥", false, p)